<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- 开发环境版本 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
  </head>
  <body>
    <!-- 
        data:数据对象
            1.Vue用到的数据定义在data中
            2.data中可以写复杂类型的数据
            3.渲染复杂类型数据时，遵守js语法即可
     -->
    <div id="app">
      {{ message }}
      <h1>{{school.name}}{{school.mobile}}</h1>
      <ul>
        <li>{{campus[0]}}</li>
        <li>{{campus[2]}}</li>
        <li>{{campus[1]}}</li>
      </ul>
    </div>
    <script>
      var app = new Vue({
        el: "#app",
        data: {
          message: "surprise 小丑博",
          school: {
            name: "小甜博",
            mobile: "借酒发真疯",
          },
          campus: ["君心", "苏安安呀", "工具人1号"],
        },
      });
    </script>
  </body>
</html>
